package com.zhangpengtao.www;

import java.util.Scanner;

public class ScannerProjectDemo3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("Please enter first number:");
        int a = sc.nextInt();
        System.out.println("Please enter second number:");
        int b = sc.nextInt();
        int max;

        if(a < b ){
            max = b;
            System.out.println("Max number is：" + max);
        }else{
            max = a ;
            System.out.println("The maximum is：" + max);
        }
    }
}
